<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    var cup1 = '美美';
    var cup2 = '吨吨';
    var cup3 = '';
    cup3 = cup1;
    cup1 = cup2;
    cup2 = cup3;
    console.log(cup1)
    console.log(cup2)
</script>

</html>